<?php 
/* SVN FILE: $Id$ */
/* FailedLogin Test cases generated on: 2009-05-30 22:05:49 : 1243736629*/
App::import('Model', 'FailedLogin');

class FailedLoginTestCase extends CakeTestCase {
	var $FailedLogin = null;
	var $fixtures = array('app.failed_login');

	function startTest() {
		$this->FailedLogin =& ClassRegistry::init('FailedLogin');
	}

	function testFailedLoginInstance() {
		$this->assertTrue(is_a($this->FailedLogin, 'FailedLogin'));
	}

	function testFailedLoginFind() {
		$this->FailedLogin->recursive = -1;
		$results = $this->FailedLogin->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('FailedLogin' => array(
			'id'  => 1,
			'ip'  => 'Lorem ipsum d',
			'lastUpdate'  => '2009-05-30 22:23:49',
			'count'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>